<template>
	<el-form  :model="levelform" label-width="80px">
	
		<el-form-item label="序号">
			<el-input v-model="levelform.nursingId"></el-input>
		</el-form-item>
		<el-form-item label="护理级别">
			<el-input v-model="levelform.nursingLevel"></el-input>
		</el-form-item>
		<el-form-item label="状态">
			<el-input v-model="levelform.levelStatus"></el-input>
		</el-form-item>
		<el-button type="primary" @click="doAdd">提交</el-button>
	</el-form>
</template>

<script>
	
	export default{
		name:'LevelAdd',
		props:[
			'dialogVisible',
			
		],
		data(){
			return {
				levelform:{
					nursingId:'',
					nursingLevel:'',
					levelStatus:''
				}
			}
		},
		methods:{
			doAdd(){
				this.getRequest("/nursinglevel/insert",this.levelform).then(resp=>{
					if(resp){
						this.$emit("update:dialogVisible",false);
						this.$emit("add")
					}else{
						this.$message.error({message:'保存失败'});
					}
				})
			}
		}
	}
</script>

<style>
</style>
